Decomposition of time series